import Mock from 'mockjs';

let system = [{
	key: "/system/login",
	method: "put",
	data: Mock.mock({
		'STATUS': "SUCCESS",
		'DATA': {
			'user': {
				'id': '@increment(1)',
				'account|6': /[a-z][A-Z][0-9]/,
				'ct': '@datetime("yyyy-MM-dd hh:mm:ss")'
			},
			'roles|1-5': [{
				'roleId|2': /[0-9]/,
				'roleName|1': [
					"订单管理员",
					"服务管理员",
				]
			}, ],
			'permissions': [
				{
					permissionId: 1,
					name: "系统管理",
					permissions: [{
							permissionId: 2,
							name: "用户列表",
							path: "/user"
						},
						{
							permissionId: 3,
							name: "角色列表",
							path: "/role"
						},
						{
							permissionId: 4,
							name: "权限列表",
							path: "/permission"
						}
					]
				},
				{
					permissionId: 5,
					name: "线索管理",
					permissions: [{
							permissionId: 6,
							name: "线索信息",
							path: "/resource"
						},
						{
							permissionId: 7,
							name: "角色列表",
							path: "/role"
						},
						{
							permissionId: 8,
							name: "权限列表",
							path: "/permission"
						}
					]
				},
				{
					permissionId: 9,
					name: "到访管理",
					permissions: [{
							permissionId: 10,
							name: "到访列表",
							path: "/interview"
						},
						{
							permissionId: 11,
							name: "角色列表",
							path: "/role"
						},
						{
							permissionId: 12,
							name: "权限列表",
							path: "/permission"
						}
					]
				},
				{
					permissionId: 13,
					name: "试听管理",
					permissions: [{
							permissionId: 14,
							name: "用户列表",
							path: "/try"
						},
						{
							permissionId: 15,
							name: "角色列表",
							path: "/role"
						},
						{
							permissionId: 16,
							name: "权限列表",
							path: "/permission"
						}
					]
				},
				
			],
			
		}
	})
}];
export default system;
